package itdep.domain.division;

import itdep.domain.IisEntity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author lena
 * @version $Revision: 10 $ $Date: 2010-06-16 07:13:04 +0000 (Wed, 16 Jun 2010) $
 */
@Entity
@Table(name = "EMPLOYEE_POSITION")
public class EmployeePosition extends IisEntity {

	@ManyToOne
	@JoinColumn(name = "ID_DEPARTMENT", nullable = false)
	private Department department;

	@ManyToOne
	@JoinColumn(name = "ID_EMPLOYEE", nullable = false)
	private Employee employee;

	@ManyToOne
	@JoinColumn(name = "ID_JOB_POSITION", nullable = false)
	private JobPosition jobPosition;

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public JobPosition getJobPosition() {
		return jobPosition;
	}

	public void setJobPosition(JobPosition jobPosition) {
		this.jobPosition = jobPosition;
	}
}